import { Component, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Params, Router} from '@angular/router';
import { TimeService } from '../../service/timeservice/time.service';
import { PopupComponent, SkinType } from 'ngx-weui';

@Component({
  selector: 'app-appointrecord',
  templateUrl: './appointrecord.component.html',
  styleUrls: ['./appointrecord.component.css']
})
export class AppointrecordComponent implements OnInit {

  @ViewChild('simple') simplePopup: PopupComponent;

  shown = false;
  radio: any;
  res: any = {
    cho2: true,
    agree: true
  };

  constructor( private service: TimeService, private router: Router) {
    this.radio = this.service.person; // 就诊人列表
    this.res.radio = this.radio[0]; // 默认选中第一个
  }

  appointrecordinfo() {
    this.router.navigate(['/appointrecord/appointrecordinfo']);
  }

  ngOnInit() {
  }

}
